package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 店铺预约信息对象 sh_appointment
 * 
 * @author ruoyi
 * @date 2023-08-10
 */
@Data
public class ShAppointment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    private Long shopId;

    @Excel(name = "店铺")
    private String shopName;

    /** 预约人姓名 */
    @Excel(name = "预约人姓名")
    private String userName;

    /** 预约电话 */
    @Excel(name = "预约电话")
    private String phone;

    /** 预约时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8")
    @Excel(name = "预约时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
    private Date dating;

    @Excel(name = "创建人")
    private String createByName;

    private String appId;

    private String order;
    private String orderType;

    private String datingB;
    private String datingE;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userName", getUserName())
            .append("phone", getPhone())
            .append("dating", getDating())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .toString();
    }
}
